<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>web site</title>
	</head>
	<body>
		<script>
			function fn1() {
				console.log("我是第一种定义方法！");
			}
			var fn2 = function (){
				console.log("我是第二种定义方法！");
			}
			var fn3 = new Function("console.log('我是第三种定义方法！')");
			
			fn1();
			fn2();
			fn3();
			
		</script>
	</body>
</html>